/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tdtest.action;

import tdtest.data.DataObject;
import tdtest.data.TDList;

/**
 *
 * @author sutter
 */
public class RemoveListItem<T extends DataObject> implements Action {
	
	private TDList<T> list;
	private T data;
			
	public RemoveListItem(TDList<T> list, T data) {
		this.list = list;
		this.data = data;
	}
	
	public void run() {
		list.groupItems.remove(data);
		list.onUpdate();
	}
}
